package com.kumi.core.service;


import com.kumi.core.domain.Site;

import java.util.List;
import java.util.Map;

/**
 * SiteService
 * 
 * @author liufang
 * 
 */
public interface SiteService {


	public List<Site> findList();

	public List<Site> findByUserId(Integer userId);

	public Site findByNumber(String number);

	public Site findByDomain(String domain);

	public Site findDefault();

	public boolean numberExist(String number);

	public Site get(Integer id);

	public Site save(Site bean, Integer parentId, Integer orgId,
                     Integer htmlPublishPointId, Integer userId, Site srcSite);

	public Site update(Site bean);

	public Site update(Site bean, Integer parentId, Integer orgId,
                       Integer htmlPublishPointId);



	public void updateCustoms(Site site, Map<String, String> map,
                              Map<String, String> clobMap);

	public Site delete(Integer id);

	public Site[] delete(Integer[] ids);
}
